<template>
    <!-- 未完善则弹窗提示抖音账号未完善 -->
    <dyPopup
        v-model="isShowNotBind"
        :buttonText="['去完善']"
        :showClose="true"
        :showFailIcon="true"
        :contentHeight="340"
        @button1Click="toDyAccount"
    >
        <view class="common-wapper">
            <view class="remind-text more-margin">请前往【我的】-【抖音账号管理】中完善抖音账号信息后再申请</view>
        </view>
    </dyPopup>
</template>

<script>
import dyPopup from '@/components/dyPopup';
import { mapMutations, mapGetters } from 'vuex';
export default {
    name: 'dyPopupBind',
    components: { dyPopup },
    data(){
        return {}
    },
    computed: {
        ...mapGetters(['getIsShowNotBind', 'getToken']),
        isShowNotBind(){
            return this.getIsShowNotBind || false
        }
    },
    methods: {
        ...mapMutations(['changeShowNotBind']),
        toDyAccount() {
			const url = `/thirdManage/dyAccount`;
            this.changeShowNotBind(false)
			uni.reLaunch({
				url
			});
		},
    }
}
</script>

<style lang="scss">
@import '@/style/common.scss';
</style>